/*
 * author zhud
 * date 2007.12.29
 * 标准的alert对话框
 */
package com.nstar.base.controls
{
	import mx.controls.Alert;
	import com.nstar.base.assets.Assets;
	
	public class AlertFX extends Alert
	{
		

		public static function info(message:String, closehandler:Function=null):void{
			setLable(); 
			show(message, "警告", Alert.OK, null, closehandler, Assets.iconInfo);
		}
		
		public static function error(message:String, closehandler:Function=null):void{
			setLable(); 
			show(message, "错误", Alert.OK, null, closehandler, Assets.iconError);
		}
		
		public static function confirm(message:String, closehandler:Function=null):void{
			setLable(); 
			show(message, "确认", Alert.YES | Alert.NO, null, closehandler, Assets.iconConfirm);
		}
		
		private static function setLable():void {
			okLabel = "确 定";
	    	yesLabel = "是";
	    	noLabel = "否";
	    	cancelLabel = "取 消";
		} 

	}
}